package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class Mananger extends Employee{

    private String department;
    public Mananger(String name, String address, double salary, String department) {
        super(name, address, salary);
        this.department = department;
    }

    public Mananger() {
    }

    public Mananger(String department) {
        this.department = department;
    }

    /**
     * 获取
     * @return department
     */
    public String getDepartment() {
        return department;
    }

    /**
     * 设置
     * @param department
     */
    public void setDepartment(String department) {
        this.department = department;
    }
@Override
    public void show() {
        super.show();
        System.out.println("部门："+department);
    }

}
